ultrasonic3 2.2.0
Loading...
Searching...
No Matches
app_config.h File Reference

Go to the source code of this file.

Macros

#define CHIRP_FIRST_SENSOR_MODE   (CH_MODE_TRIGGERED_TX_RX)
#define CHIRP_OTHER_SENSOR_MODE   (CH_MODE_TRIGGERED_RX_ONLY)
#define CHIRP_TRIGGER_TYPE   (CH_TRIGGER_TYPE_HW)
#define CHIRP_ICU10201_MAX_RANGE_MM   (750) /* maximum range, in mm for ICU10201 */
#define CHIRP_ICU20201_MAX_RANGE_MM   (4000) /* maximum range, in mm for ICU20201 */
#define CHIRP_ICU30201_MAX_RANGE_MM   (7000) /* maximum range, in mm for ICU30201 */
#define CHIRP_STATIC_REJECT_SAMPLES   (0)
#define CHIRP_TARGET_INT_FILTER   (0)
#define CHIRP_RX_HOLDOFF_SAMPLES   (0)
#define CHIRP_RX_PRETRIGGER_ENABLE   (1)
#define CHIRP_MAX_TARGETS   (3) /* Maximum number of targets to detect */
#define CHIRP_THRESH_0_START   (0) /* threshold 0 - must start at sample zero */
#define CHIRP_THRESH_0_LEVEL   (2500)
#define CHIRP_THRESH_1_START   (40) /* threshold 1 */
#define CHIRP_THRESH_1_LEVEL   (800)
#define CHIRP_THRESH_2_START   (70) /* threshold 2 */
#define CHIRP_THRESH_2_LEVEL   (400)
#define CHIRP_THRESH_3_START   (100) /* threshold 3 */
#define CHIRP_THRESH_3_LEVEL   (200)
#define CHIRP_THRESH_4_START   (160) /* threshold 4 */
#define CHIRP_THRESH_4_LEVEL   (140)
#define CHIRP_THRESH_5_START   (200) /* threshold 5 */
#define CHIRP_THRESH_5_LEVEL   (95)
#define CHIRP_THRESH_6_START   (240) /* threshold 6 */
#define CHIRP_THRESH_6_LEVEL   (50)
#define CHIRP_THRESH_7_START   (0) /* threshold 7 (not used) */
#define CHIRP_THRESH_7_LEVEL   (0)
#define CHIRP_TX_SEG_CYCLES   (640) /* Transmit segment - length (cycles) */
#define CHIRP_TX_SEG_PULSE_WIDTH   (3) /* width of each cycle pulse */
#define CHIRP_TX_SEG_PHASE   (8) /* tx phase */
#define CHIRP_TX_SEG_INT_EN   (0) /* no interrupt when done */
#define CHIRP_RX_SEG_0_SAMPLES   (1) /* Receive segment 0 - single sample */
#define CHIRP_RX_SEG_0_GAIN_REDUCE   (24) /* reduce gain */
#define CHIRP_RX_SEG_0_ATTEN   (1) /* use attenuation */
#define CHIRP_RX_SEG_0_INT_EN   (0) /* no interrupt when done */
#define CHIRP_RX_SEG_1_SAMPLES   (295) /* Receive segment 1 - remainder of measurement */
#define CHIRP_RX_SEG_1_GAIN_REDUCE   (0) /* no gain reduction */
#define CHIRP_RX_SEG_1_ATTEN   (0) /* no attenuation */
#define CHIRP_RX_SEG_1_INT_EN   (1) /* generate interrupt when done (if eligible) */
#define CHIRP_SENSOR_ODR   (CH_ODR_FREQ_DIV_8)
#define CHIRP_MEAS_OPTIMIZE   (1) /* if non-zero, meas segments will be optimized */
#define MEASUREMENT_INTERVAL_MS   (100)
#define DISPLAY_AMP_VALUE   (1) /* if non-zero, show amplitude for detected target(s) */
#define DISPLAY_SAMPLE_NUM   (1) /* if non-zero, show sample number for detected target(s) */
#define DISPLAY_MULTI_TARGET   (1)

Macro Definition Documentation

◆ CHIRP_FIRST_SENSOR_MODE

#define CHIRP_FIRST_SENSOR_MODE   (CH_MODE_TRIGGERED_TX_RX)

◆ CHIRP_ICU10201_MAX_RANGE_MM

#define CHIRP_ICU10201_MAX_RANGE_MM   (750) /* maximum range, in mm for ICU10201 */

◆ CHIRP_ICU20201_MAX_RANGE_MM

#define CHIRP_ICU20201_MAX_RANGE_MM   (4000) /* maximum range, in mm for ICU20201 */

◆ CHIRP_ICU30201_MAX_RANGE_MM

#define CHIRP_ICU30201_MAX_RANGE_MM   (7000) /* maximum range, in mm for ICU30201 */

◆ CHIRP_MAX_TARGETS

#define CHIRP_MAX_TARGETS   (3) /* Maximum number of targets to detect */

◆ CHIRP_MEAS_OPTIMIZE

#define CHIRP_MEAS_OPTIMIZE   (1) /* if non-zero, meas segments will be optimized */

◆ CHIRP_OTHER_SENSOR_MODE

#define CHIRP_OTHER_SENSOR_MODE   (CH_MODE_TRIGGERED_RX_ONLY)

◆ CHIRP_RX_HOLDOFF_SAMPLES

#define CHIRP_RX_HOLDOFF_SAMPLES   (0)

◆ CHIRP_RX_PRETRIGGER_ENABLE

#define CHIRP_RX_PRETRIGGER_ENABLE   (1)

◆ CHIRP_RX_SEG_0_ATTEN

#define CHIRP_RX_SEG_0_ATTEN   (1) /* use attenuation */

◆ CHIRP_RX_SEG_0_GAIN_REDUCE

#define CHIRP_RX_SEG_0_GAIN_REDUCE   (24) /* reduce gain */

◆ CHIRP_RX_SEG_0_INT_EN

#define CHIRP_RX_SEG_0_INT_EN   (0) /* no interrupt when done */

◆ CHIRP_RX_SEG_0_SAMPLES

#define CHIRP_RX_SEG_0_SAMPLES   (1) /* Receive segment 0 - single sample */

◆ CHIRP_RX_SEG_1_ATTEN

#define CHIRP_RX_SEG_1_ATTEN   (0) /* no attenuation */

◆ CHIRP_RX_SEG_1_GAIN_REDUCE

#define CHIRP_RX_SEG_1_GAIN_REDUCE   (0) /* no gain reduction */

◆ CHIRP_RX_SEG_1_INT_EN

#define CHIRP_RX_SEG_1_INT_EN   (1) /* generate interrupt when done (if eligible) */

◆ CHIRP_RX_SEG_1_SAMPLES

#define CHIRP_RX_SEG_1_SAMPLES   (295) /* Receive segment 1 - remainder of measurement */

◆ CHIRP_SENSOR_ODR

#define CHIRP_SENSOR_ODR   (CH_ODR_FREQ_DIV_8)

◆ CHIRP_STATIC_REJECT_SAMPLES

#define CHIRP_STATIC_REJECT_SAMPLES   (0)

◆ CHIRP_TARGET_INT_FILTER

#define CHIRP_TARGET_INT_FILTER   (0)

◆ CHIRP_THRESH_0_LEVEL

#define CHIRP_THRESH_0_LEVEL   (2500)

◆ CHIRP_THRESH_0_START

#define CHIRP_THRESH_0_START   (0) /* threshold 0 - must start at sample zero */

◆ CHIRP_THRESH_1_LEVEL

#define CHIRP_THRESH_1_LEVEL   (800)

◆ CHIRP_THRESH_1_START

#define CHIRP_THRESH_1_START   (40) /* threshold 1 */

◆ CHIRP_THRESH_2_LEVEL

#define CHIRP_THRESH_2_LEVEL   (400)

◆ CHIRP_THRESH_2_START

#define CHIRP_THRESH_2_START   (70) /* threshold 2 */

◆ CHIRP_THRESH_3_LEVEL

#define CHIRP_THRESH_3_LEVEL   (200)

◆ CHIRP_THRESH_3_START

#define CHIRP_THRESH_3_START   (100) /* threshold 3 */

◆ CHIRP_THRESH_4_LEVEL

#define CHIRP_THRESH_4_LEVEL   (140)

◆ CHIRP_THRESH_4_START

#define CHIRP_THRESH_4_START   (160) /* threshold 4 */

◆ CHIRP_THRESH_5_LEVEL

#define CHIRP_THRESH_5_LEVEL   (95)

◆ CHIRP_THRESH_5_START

#define CHIRP_THRESH_5_START   (200) /* threshold 5 */

◆ CHIRP_THRESH_6_LEVEL

#define CHIRP_THRESH_6_LEVEL   (50)

◆ CHIRP_THRESH_6_START

#define CHIRP_THRESH_6_START   (240) /* threshold 6 */

◆ CHIRP_THRESH_7_LEVEL

#define CHIRP_THRESH_7_LEVEL   (0)

◆ CHIRP_THRESH_7_START

#define CHIRP_THRESH_7_START   (0) /* threshold 7 (not used) */

◆ CHIRP_TRIGGER_TYPE

#define CHIRP_TRIGGER_TYPE   (CH_TRIGGER_TYPE_HW)

◆ CHIRP_TX_SEG_CYCLES

#define CHIRP_TX_SEG_CYCLES   (640) /* Transmit segment - length (cycles) */

◆ CHIRP_TX_SEG_INT_EN

#define CHIRP_TX_SEG_INT_EN   (0) /* no interrupt when done */

◆ CHIRP_TX_SEG_PHASE

#define CHIRP_TX_SEG_PHASE   (8) /* tx phase */

◆ CHIRP_TX_SEG_PULSE_WIDTH

#define CHIRP_TX_SEG_PULSE_WIDTH   (3) /* width of each cycle pulse */

◆ DISPLAY_AMP_VALUE

#define DISPLAY_AMP_VALUE   (1) /* if non-zero, show amplitude for detected target(s) */

◆ DISPLAY_MULTI_TARGET

#define DISPLAY_MULTI_TARGET   (1)

◆ DISPLAY_SAMPLE_NUM

#define DISPLAY_SAMPLE_NUM   (1) /* if non-zero, show sample number for detected target(s) */

◆ MEASUREMENT_INTERVAL_MS

#define MEASUREMENT_INTERVAL_MS   (100)